package fracPackage;

import java.awt.*;

public class ColorScheme 
{
 	public Color[] colorArr; 

 	public ColorScheme()
 	{
 	}
 	
	public Color color(int nIter)
	{
		int red   = (int)Math.round(-120*Math.cos(nIter/6.)   + 120);
		int green = (int)Math.round(-120*Math.cos(nIter/6. + 1.04)   + 120);
		int blue  = (int)Math.round(-120*Math.cos(nIter/6. + 2.08) + 120);
		
		return new Color(red, green, blue);
	}
}
